extends layout
block content
    link(rel='stylesheet' href='/stylesheets/login.css')
    div(class='container')
        div(class='form')
            form(action='/user/login' method='post')
                h2 用户登录
                div(class='input-box')
                    input(type='text' name='name' placeholder='账号',min=3)
                    input(type='password' name='pwd' placeholder='密码',min=6)
                br
                -
                if state
                    div(style='color:red; padding:5px;')= msg
                input(type='submit' value='登录' class='btn')
                br
                a(href='/user/register' title='注册') 没有账号？点击注册
